export function _mockUnitDetailData() {
    return new Promise(resolve => {
        setTimeout(() => {
            resolve({
                "id": 14,
                "userId": "1",
                "username": null,
                "title": "《猫与狗》",
                "englishTitle": "Cats and Dogs",
                "avatar": "https://tva2.sinaimg.cn/large/9bd9b167ly1g2rmpwaxkkj21hc0u0e81.jpg",
                "summary": "单元主题",
                "originalAudio": "https://media.w3.org/2010/05/sintel/trailer.mp4",
                "originalExplanationAudio": "http://101.201.61.220/englishSystem/img/b37fd1b0e69047bdb9c8433c2c975af7.m4a",
                "originalExplanationPdf": "http://101.201.61.220/englishSystem/img/92f524d6c0574f5f85dca8141bc553ed.pdf",
                "content": "<p>猫和狗是两种常见的宠物。猫通常被认为是优雅的，而狗则被认为是忠诚的。猫喜欢独处，而狗则更喜欢和人互动。猫经常在夜间活动，而狗则通常在白天活动。</p>\n<p>尽管猫和狗有很多不同之处，但它们也可以成为好朋友。一些家庭甚至同时养猫和狗，并让它们在一起生活。这样，它们可以相互陪伴，并为家庭带来更多的欢乐。</p>\n<p>总的来说，猫和狗都是人类的好伙伴。它们不仅提供了陪伴和安慰，还可以帮助我们缓解压力和焦虑。无论是养猫还是养狗，我们都应该好好照顾它们，并与它们建立深厚的感情。</p>\n",
                "englishContent": "<p>Cats and dogs are two common pets. Cats are often considered elegant, while dogs are known for their loyalty. Cats prefer to be alone, while dogs prefer to interact with people. Cats are often active at night, while dogs are typically active during the day.</p>\n<p>Despite their differences, cats and dogs can also become good friends. Some families even have both cats and dogs living together. This way, they can keep each other company and bring more joy to the family.</p>\n<p>Overall, both cats and dogs are great companions for humans. They not only provide companionship and comfort, but also help us relieve stress and anxiety. Whether you choose to have a cat or a dog, it is important to take good care of them and build a strong bond with them.</p>\n",
                "englishContentMd": "Cats and dogs are two common pets. Cats are often considered elegant, while dogs are known for their loyalty. Cats prefer to be alone, while dogs prefer to interact with people. Cats are often active at night, while dogs are typically active during the day.\n\nDespite their differences, cats and dogs can also become good friends. Some families even have both cats and dogs living together. This way, they can keep each other company and bring more joy to the family.\n\nOverall, both cats and dogs are great companions for humans. They not only provide companionship and comfort, but also help us relieve stress and anxiety. Whether you choose to have a cat or a dog, it is important to take good care of them and build a strong bond with them.\n\n",
                "contentMd": "猫和狗是两种常见的宠物。猫通常被认为是优雅的，而狗则被认为是忠诚的。猫喜欢独处，而狗则更喜欢和人互动。猫经常在夜间活动，而狗则通常在白天活动。\n\n尽管猫和狗有很多不同之处，但它们也可以成为好朋友。一些家庭甚至同时养猫和狗，并让它们在一起生活。这样，它们可以相互陪伴，并为家庭带来更多的欢乐。\n\n总的来说，猫和狗都是人类的好伙伴。它们不仅提供了陪伴和安慰，还可以帮助我们缓解压力和焦虑。无论是养猫还是养狗，我们都应该好好照顾它们，并与它们建立深厚的感情。",
                "isStick": null,
                "isPublish": 1,
                "isOriginal": 1,
                "originalUrl": null,
                "keywords": null,
                "readType": 0,
                "quantity": 1,
                "likeCount": null,
                "commentCount": 0,
                "createTime": 1634227200000,
                "updateTime": 1708004588000,
                "tagList": [{
                    "id": 10,
                    "name": "博客",
                    "sort": 9,
                    "clickVolume": 679,
                    "createTime": "2021-11-12 14:43:27",
                    "updateTime": "2023-06-05 03:00:00"
                }],
                "category": {
                    "id": 32,
                    "name": "博客文档",
                    "picture": null,
                    "clickVolume": null,
                    "sort": null,
                    "icon": null,
                    "createTime": null,
                    "updateTime": null
                },
                "isLike": false,
                "isCollect": 0,
                "isFollowed": 0,
                "collectCount": 0,
                "activeReadType": false,
                "apiCommentListVos": null,
                "userInfo": null
            })
        }, 500)
    })
}

export function _mockGetPdfPath() {
    return new Promise(resolve => {
        resolve("http://101.201.61.220/englishSystem/img/6a38c57ef35048449cd533f893befd54.pdf")
    })
}

export function _mockUploadFile() {
    return new Promise(resolve => {
        resolve("http://101.201.61.220/readSystem/img/3b7de1024d8f4c59968da353d7825f79.jpg");
    })
}

export function _mockGetUnitWordData() {
    return new Promise(resolve => {
        resolve({
            "1": [{
                    "id": 180,
                    "categoryId": 1,
                    "articleId": 1,
                    "questionTypeId": 1,
                    "questionTypeName": "重点词汇",
                    "questionNumber": 1,
                    "stem": null,
                    "subjectContent": "{\"englishWord\":\"good\",\"chineseTranslation\":\"aaaaaaaaa\",\"englishTranslation\":\"aaaaaaaaa\",\"picture\":\"https://tva2.sinaimg.cn/large/9bd9b167ly1g2rmpwaxkkj21hc0u0e81.jpg\",\"audioFrequency\":\"aaaaaaaaa\"}\r\n",
                    "deleteFlag": 0,
                    "createTime": "2024-01-22 23:06:08",
                    "updateTime": null,
                    "createUserId": null,
                    "createUserName": null,
                    "updateUserId": null,
                    "updateUserName": null
                },
                {
                    "id": 181,
                    "categoryId": 1,
                    "articleId": 1,
                    "questionTypeId": 1,
                    "questionTypeName": "重点词汇",
                    "questionNumber": 2,
                    "stem": null,
                    "subjectContent": "{\"englishWord\":\"keep\",\"chineseTranslation\":\"aaaaaaaaa\",\"englishTranslation\":\"aaaaaaaaa\",\"picture\":\"https://tva2.sinaimg.cn/large/9bd9b167ly1g2rmpwaxkkj21hc0u0e81.jpg\",\"audioFrequency\":\"aaaaaaaaa\"}\r\n",
                    "deleteFlag": 0,
                    "createTime": "2024-01-22 23:06:08",
                    "updateTime": null,
                    "createUserId": null,
                    "createUserName": null,
                    "updateUserId": null,
                    "updateUserName": null
                }
            ]
        })
    })
}

export function _mockGetTestData() {
    return new Promise(resolve => {
        resolve({
            "4": [{
                "id": 178,
                "categoryId": 1,
                "articleId": 1,
                "questionTypeId": 4,
                "questionTypeName": "连线",
                "questionNumber": 1,
                "stem": null,
                "subjectContent": "{\"subject\":\"1111111111111111\",\"selection\":[{\"mark\":\"A\",\"keyWord\":\"aaaaaaaaa\",\"definition\":\"aaaaaaaaa\"},{\"mark\":\"B\",\"keyWord\":\"aaaaaaaaa\",\"definition\":\"aaaaaaaaa\"},{\"mark\":\"C\",\"keyWord\":\"aaaaaaaaa\",\"definition\":\"aaaaaaaaa\"}]}\r\n",
                "deleteFlag": 0,
                "createTime": "2021-10-15 09:57:22",
                "updateTime": "2023-12-30 04:00:00",
                "createUserId": null,
                "createUserName": null,
                "updateUserId": null,
                "updateUserName": null
            }],
            "2": [{
                    "id": 14,
                    "categoryId": 1,
                    "articleId": 1,
                    "questionTypeId": 2,
                    "questionTypeName": "单选",
                    "questionNumber": 1,
                    "stem": null,
                    "subjectContent": "{\"subject\":\"1111111111111111\",\"selection\":[{\"mark\":\"A\",\"details\":\"aaaaaaaaa\"},{\"mark\":\"B\",\"details\":\"bbbbbbbbbb\"},{\"mark\":\"C\",\"details\":\"ccccccccc\"}],\"answer\":\"A\"}\r\n",
                    "deleteFlag": 0,
                    "createTime": "2021-10-15 09:57:22",
                    "updateTime": "2023-12-30 04:00:00",
                    "createUserId": null,
                    "createUserName": null,
                    "updateUserId": null,
                    "updateUserName": null
                },
                {
                    "id": 176,
                    "categoryId": 1,
                    "articleId": 1,
                    "questionTypeId": 2,
                    "questionTypeName": "单选",
                    "questionNumber": 2,
                    "stem": null,
                    "subjectContent": "{\"subject\":\"1111111111111111\",\"selection\":[{\"mark\":\"A\",\"details\":\"aaaaaaaaa\"},{\"mark\":\"B\",\"details\":\"bbbbbbbbbb\"},{\"mark\":\"C\",\"details\":\"ccccccccc\"}],\"answer\":\"A\"}\r\n",
                    "deleteFlag": 0,
                    "createTime": "2021-10-15 09:57:22",
                    "updateTime": "2023-12-30 04:00:00",
                    "createUserId": null,
                    "createUserName": null,
                    "updateUserId": null,
                    "updateUserName": null
                }
            ],
            "3": [{
                "id": 177,
                "categoryId": 1,
                "articleId": 1,
                "questionTypeId": 3,
                "questionTypeName": "完型填空",
                "questionNumber": 1,
                "stem": null,
                "subjectContent": "{\"subject\":\"11111111\",\"details\":\"<p>Procrastination is a common issue that affects many people, leading to decreased productivity and increased stress levels. However, there are several practical strategies that can help you overcome this problem and increase your motivation to complete tasks on time.</p>\\n<p>Break tasks into smaller steps<br />\\nOne of the most effective ways to overcome <mark>procrastination</mark> is to break larger tasks into smaller, more manageable steps. This allows you to approach the task with less anxiety and to celebrate each small victory as you complete each step. As you make progress, your motivation to continue will increase.</p>\\n<p>Use a timer<br />\\nSet a timer for a specific period of time - such as 25 minutes - and work on the task for that time without interruption. Then take a short break, and repeat the process. This technique, known as the Pomodoro Technique, helps you stay focused and avoid distractions.</p>\\n<p>Remove distractions<br />\\nTo stay focused and avoid distractions, remove anything that may be pulling your attention away from your task. This may include turning off your phone or email notifications, closing unnecessary browser tabs, and working in a quiet, distraction-free environment.</p>\\n<p>Set specific goals and deadlines<br />\\nSet clear, specific goals for each task and assign deadlines. This helps you stay organized and motivated, and it also provides a sense of urgency that encourages you to work efficiently.</p>\\n<p>Reward yourself<br />\\nGive yourself a small reward each time you complete a task or make progress on a larger project. This positive reinforcement helps build your motivation and makes the process more enjoyable.</p>\\n<p>In conclusion, overcoming procrastination requires a conscious effort to change habits and behaviors. Applying these practical strategies can help you increase your motivation, stay focused, and complete tasks on time. With consistent effort, you can overcome procrastination and achieve your with greater ease and.</p>\\n\",\"answer\":\"aaa,bbbb\"}\r\n",
                "deleteFlag": 0,
                "createTime": "2021-10-15 09:57:22",
                "updateTime": "2023-12-30 04:00:00",
                "createUserId": null,
                "createUserName": null,
                "updateUserId": null,
                "updateUserName": null
            }]
        })
    })
}

export function _mockGetUnitWordAnswerResult() {
    return new Promise(resolve => {
        resolve({
            "total": 2, // 总题数
            "already": 1, //已经完成题数
            "comprehensiveScore": 19.72, // 总分
            "list": [{
                    "id": 180,
                    "articleExercisesId": 1,
                    "questionTypeId": 1,
                    "articleId": 1,
                    "num": 1,
                    "userAnswer": "good",
                    "userAnswerDetail": "C:\\Users\\nieji\\Documents\\录音\\71943eb79732447f9abcb7dd541b5e39.m4a",
                    "isCorrect": 1,
                    "score": 19.72, // 单个得分(小太阳50分以下 1颗、  50分至 80 分2颗 、 80以上3颗。) 下面同理
                    "deleteFlag": 0,
                    "createTime": "2024-01-14 20:57:33",
                    "updateTime": null,
                    "createUserId": "1",
                    "createUserName": null,
                    "updateUserId": "1",
                    "updateUserName": null
                }
                // , {
                //     "id": 181,
                //     "articleExercisesId": 1,
                //     "questionTypeId": 1,
                //     "articleId": 1,
                //     "num": 1,
                //     "userAnswer": "good",
                //     "userAnswerDetail": "C:\\Users\\nieji\\Documents\\录音\\71943eb79732447f9abcb7dd541b5e39.m4a",
                //     "isCorrect": 1,
                //     "score": 19.72, // 单个得分(小太阳50分以下 1颗、  50分至 80 分2颗 、 80以上3颗。) 下面同理
                //     "deleteFlag": 0,
                //     "createTime": "2024-01-14 20:57:33",
                //     "updateTime": null,
                //     "createUserId": "1",
                //     "createUserName": null,
                //     "updateUserId": "1",
                //     "updateUserName": null
                // },
            ]
        })
    })

}

export function _mockGetSingleChooseAnswerResult() {
    return new Promise(resolve => {
        resolve({
            "total": 5,
            "already": 1,
            "comprehensiveScore": 0.20,
            "list": [{
                "id": 183,
                "articleExercisesId": 14,
                "questionTypeId": 2,
                "articleId": 1,
                "num": 1,
                "subject": "111111111",
                "userAnswer": "A",
                "userAnswerDetail": "aaaaaaaaa",
                "correctAnswer": null,
                "correctAnswerDetail": null,
                "isCorrect": 1,
                "score": 100.00,
                "deleteFlag": 0,
                "createTime": "2024-01-16 22:55:19",
                "updateTime": null,
                "createUserId": "1",
                "createUserName": null,
                "updateUserId": "1",
                "updateUserName": null
            }]
        })
    })

}

export function _mockGetClozeAnswerResult() {
    return new Promise(resolve => {
        resolve({
            "total": 5,
            "already": 1,
            "comprehensiveScore": 0.20,
            "list": []
        })
    })
    return new Promise(resolve => {
        resolve({
            "total": 5,
            "already": 1,
            "comprehensiveScore": 0.20,
            "list": [{
                "id": 183,
                "articleExercisesId": 14,
                "questionTypeId": 2,
                "articleId": 1,
                "num": 1,
                "subject": "111111111",
                "userAnswer": "A",
                "userAnswerDetail": "aaaaaaaaa",
                "correctAnswer": null,
                "correctAnswerDetail": null,
                "isCorrect": 1,
                "score": 100.00,
                "deleteFlag": 0,
                "createTime": "2024-01-16 22:55:19",
                "updateTime": null,
                "createUserId": "1",
                "createUserName": null,
                "updateUserId": "1",
                "updateUserName": null
            }]
        })
    })

}

export function _mockGetLineLinkAnswerResult() {
    return new Promise(resolve => {
        resolve({
            "total": 5,
            "already": 1,
            "comprehensiveScore": 0.20,
            "list": []
        })
    })
    return new Promise(resolve => {
        resolve({
            "total": 5,
            "already": 1,
            "comprehensiveScore": 0.20,
            "list": [{
                "id": 183,
                "articleExercisesId": 14,
                "questionTypeId": 2,
                "articleId": 1,
                "num": 1,
                "subject": "111111111",
                "userAnswer": ["aaa", "bbb"],
                "userAnswerDetail": "aaaaaaaaa",
                "correctAnswer": null,
                "correctAnswerDetail": null,
                "isCorrect": 1,
                "score": 100.00,
                "deleteFlag": 0,
                "createTime": "2024-01-16 22:55:19",
                "updateTime": null,
                "createUserId": "1",
                "createUserName": null,
                "updateUserId": "1",
                "updateUserName": null
            }]
        })
    })
}

export function _mockGetAloudAnswerResult() {
    return new Promise(resolve => {
        resolve({
            "total": 5, // 总题数
            "already": 1, //已经完成题数
            "comprehensiveScore": 19.72, // 总分
            "list": [{
                "id": 180,
                "articleExercisesId": 1,
                "questionTypeId": 1,
                "articleId": 1,
                "num": 1,
                "userAnswer": "good",
                "userAnswerDetail": "C:\\Users\\nieji\\Documents\\录音\\71943eb79732447f9abcb7dd541b5e39.m4a",
                "isCorrect": 1,
                "score": 19.72, // 单个得分(小太阳50分以下 1颗、  50分至 80 分2颗 、 80以上3颗。) 下面同理
                "deleteFlag": 0,
                "createTime": "2024-01-14 20:57:33",
                "updateTime": null,
                "createUserId": "1",
                "createUserName": null,
                "updateUserId": "1",
                "updateUserName": null
            }]
        })
    })
}